import store from "@/store";
import dayjs from 'dayjs';
console.log(88);
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};


export const formBase = [  
  { 
    label: "银行名称",
    type: "input", 
    field: "bankName",
  },  
  { 
    label: "户口持有人",
    type: "input", 
    field: "accountHolder",
  },  
  { 
    label: "户口号码",
    type: "input", 
    field: "accountNumber",
  }, 
  {
    label: '启用',
    type: 'select',
    field: 'isEnable',
    optionsKey: 'label',
    optionsValue: 'value',
    options: [
      {
        label: '未启用',
        value: 0
      }, {
        label: '已启用',
        value: 1
      }
    ],
  }, 
  {
    label: "店铺",
    type: "select",
    field: "store",
    optionsKey: "shopName",
    optionsValue: "id",
    options: store.state.custom_dict.shop,
  },  
];

export const tableBase = [
  {
    label: "编号",
    prop: "id", 
    width: "200",  
  }, 
  {
    label: "银行名称",
    prop: "bankName", 
    width: "200", 
    operate: {
      required:true,
      type: "input",
      field: "bankName",  
    },
  }, 
  {
    label: "店铺",
    prop: "store",
    width: 150,
    operate: { 
      type: "select",
      field: "store",
      optionsKey: "shopName",
      optionsValue: "shopName",
      options: store.state.custom_dict.shop,
    },
  },
  {
    label: "户口持有人",
    prop: "accountHolder", 
    width: "200", 
    operate: {
      required:true,
      type: "input",
      field: "accountHolder",  
    },
  }, 
  {
    label: "户口号码",
    prop: "accountNumber", 
    width: "200", 
    operate: {
      required:true,
      type: "input",
      field: "accountNumber",  
    },
  }, 
  {
    label: "是否启用",
    prop: "isEnable", 
    width: "200", 
    slotName: 'isEnable'
  }, 
  {
    label: "币别",
    prop: "currencyType", 
    width: "200",  
    operate: {
      required:true,
      type: "input",
      field: "currencyType",  
    },
  }, 
  {
    label: "汇率",
    prop: "exchangeRate", 
    width: "200", 
    operate: {
      required:true,
      type: "input",
      field: "exchangeRate",  
    },
  }, 
  {
    label: "创建时间",
    prop: "createTime", 
    width: "200", 
  }, 
  {
    label: "更新时间",
    prop: "updateTime", 
    width: "200", 
  }, 
];
 
